# 字符串的基本操作
# 定义字符串
# title 首字母大写
# lower
# upper
# lstrip
# rstrip
# strip
# len

print('hello world')

message = 'hello world, I am val'

print(message)

message = 'i am other val, ha ha ha'

print(message)

# title() 首字母大写
print(message.title())

message = 'today is Friday' + ', f ff'
print(message)

# 字符大小写转换
name = 'Eric'
message = 'hello' + name + ',would you like to learn some Python today?'
lower_name = name.lower()
upper_name = name.upper()
title_name = name.title()

new_message = 'Albert Einstein once said, "A person who never mad a mistake never tried anything new."'

print(new_message)

# 字符去空格 lstrip、rstrip、strip
lstrip_name = '   Eric'
rstrip_name = 'Eric     '
strip_name = '  Eric   '

print('\n\t' + lstrip_name.lstrip(), '\n\t' + rstrip_name.rstrip(), '\n\t' + strip_name.strip())

print('len strip_name', len(strip_name))
